import request from './request'

// 满减管理API
export const fullApi = {
  // 查询满减列表
  getFullList(data) {
    return request({
      url: '/full/find',
      method: 'post',
      data
    })
  },

  // 查询满减
  findFull(data) {
    return request({
      url: '/full/find',
      method: 'post',
      data
    })
  },

  // 新增满减
  addFull(data) {
    return request({
      url: '/full/insert',
      method: 'post',
      data
    })
  },

  // 新增满减
  insertFull(data) {
    return request({
      url: '/full/insert',
      method: 'post',
      data
    })
  },

  // 删除满减
  deleteFull(id) {
    return request({
      url: '/full/delete',
      method: 'delete',
      params: { id }
    })
  },

  // 修改满减
  updateFull(data) {
    return request({
      url: '/full/update',
      method: 'put',
      data
    })
  }
}
